<template>
    <view class="columnbox content wdh-100">
        <view class="columnbox qm-box">
            <view class="info-title">手写签名</view>
            <image :src="doctor.qianming" mode="widthFix" class="wdh-100"></image>
        </view>
        <view style="width: 100%;height: 200rpx;"></view>
        <view class="rowbox wdh-100 bottom-box">
            <view class="rowbox wdh-100 send-btn" @click="updateInfo">修改签名</view>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                doctor: ''
            };
        },
        onShow() {
            this.getDetail()
        },
        methods: {
            getDetail() {
                this.$req.post('/user/doctorinfo', {
                    id: uni.getStorageSync('uid'),
                    uid: uni.getStorageSync('uid')
                }).then(res => {
                    this.doctor = res.data.data.doctor
                })
            },
            updateInfo() {
                uni.navigateTo({
                    url: '/pages/signature/signature'
                })
            }
        }
    }
</script>

<style lang="scss" scoped>
    .content {
        min-height: 100vh;
        background: #F5F8FB;
        justify-content: flex-start;
    }

    .qm-box {
        background: #fff;
        width: 100%;
    }

    .info-title {
        font-size: 28rpx;
        width: 100%;
        padding: 20rpx 20rpx;
        box-sizing: border-box;
        font-weight: bold;
        margin-bottom: 40rpx;
    }
</style>